<?php

namespace App\Policies;

use App\Models\Admin;
use App\Models\Post;

class PostPolicy
{
    public function view(Admin $admin, Post $post): bool
    {
        return true;
    }

    public function create(Admin $admin): bool
    {
        return true;
    }

    public function update(Admin $admin, Post $post): bool
    {
        return true;
    }

    public function delete(Admin $admin, Post $post): bool
    {
        return $post->getKey() >= 5;
    }
}
